body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 40px;
    background-color: #f9f9f9;
    color: #333;
}

/* 表单元素基础样式 */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
}

input[type="text"],
input[type="tel"],
textarea,
input[type="radio"],
input[type="checkbox"] {
    padding: 10px;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: red;
}

textarea {
    height: 80px;
    resize: vertical;
    width: 100%;
}

/* 单选按钮组布局 */
fieldset {
    margin: 12px 0;
    border: none;
    padding: 0;
}

legend {
    font-weight: bold;
    margin-bottom: 6px;
}

/* 单选按钮水平排列 */
input[type="radio"] {
    margin-right: 5px;
}

/* 复选框与文字组合 */
label[for="default"] {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

/* 提交按钮 */
button {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

button:hover {
    background-color: #3a7bc8;
}